Fix make distcheck
authorSjoerd Simons <sjoerd@luon.net>
Mon, 12 Aug 2013 14:27:42 +0000 (16:27 +0200)
committerColin Walters <walters@verbum.org>
Sat, 17 Aug 2013 18:57:05 +0000 (14:57 -0400)
make distcheck was unhappy for various reasons:
  * headers aren't data, so use _HEADERS otherwise compilation fails
  * Mark the gir & typelib data as cleanfiles so they aren't left around
    after make clean
  * Don't nuke the .la file. This breaks make uninstall, leave it up to
    distributions to not install .la files if they don't want them.

https://bugzilla.gnome.org/show_bug.cgi?id=705850

Makefile-libostree.am
Makefile.am

index 8166f45e4c1ca7bbd245822dfe14c3a5d6fdaec7..1227c034b1af33a02a14d173bd4c7b9f2646afc1 100644 (file)
@@ -21,8 +21,8 @@ include Makefile-libostree-defines.am
 
 lib_LTLIBRARIES += libostree-1.la
 
-libostreeheadersdir = $(includedir)/ostree-1
-libostreeheaders_DATA = $(libostree_public_headers)
+libostreeincludedir = $(includedir)/ostree-1
+libostreeinclude_HEADERS = $(libostree_public_headers)
 
 libostree_1_la_SOURCES = \
        src/libostree/ostree-core.c \
@@ -79,10 +79,8 @@ OSTree_1_0_gir_FILES = $(libostreeheaders_DATA) $(filter-out %-private.h,$(libos
 INTROSPECTION_GIRS += OSTree-1.0.gir
 gir_DATA += OSTree-1.0.gir
 typelib_DATA += OSTree-1.0.typelib
+
+CLEANFILES += $(gir_DATA) $(typelib_DATA)
 endif
 
 pkgconfig_DATA += src/libostree/ostree-1.pc
-
-INSTALL_DATA_HOOKS += install-libostree-data-hook
-install-libostree-data-hook: 
-       rm -f $(DESTDIR)$(libdir)/libostree-1.la
index bcd28e5bac3a8fab3a46284417a029e9d2a8200d..74102feb15e1522b8d2f4d2d3c613d4d7fc03f27 100644 (file)
@@ -21,6 +21,7 @@ AM_CPPFLAGS = -DDATADIR='"$(datadir)"' -DLIBEXECDIR='"$(libexecdir)"' \
        -DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_34 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_34 \
        -DSOUP_VERSION_MIN_REQUIRED=SOUP_VERSION_2_40 -DSOUP_VERSION_MAX_ALLOWED=SOUP_VERSION_40
 AM_CFLAGS = $(WARN_CFLAGS)
+DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --disable-maintainer-mode
 
 # Subdirectories
 SUBDIRS =